import { createBrowserRouter } from 'react-router-dom';
import Layout from '../layout';
import Home from '../pages/home';
import Community from '../pages/community';
import Profile from '../pages/profile';

const router = createBrowserRouter([
  {
    path: '/',
    element: <Layout />,
    children: [
      {
        index: true,
        element: <Home />,
      },
      {
        path: 'community',
        element: <Community />,
      },
      {
        path: 'profile',
        element: <Profile />,
      },
    ],
  },
]);

export default router;